package com.code.day20;

import java.io.FileInputStream;

import java.io.IOException;

public class Demo03FileInputStream {
    public static void main(String[] args) throws IOException {
        method();
    }

    public static void method() throws IOException {
        FileInputStream fileInputStream = new FileInputStream("D:\\java-code\\java-full-stack\\01-java-base\\src\\com\\code\\day20\\file\\demo1.txt");
        int len = 0;
        while ((len = fileInputStream.read()) != -1)
            System.out.println((char) len);
        fileInputStream.close();
    }
}
